import Vue from "vue";
import Vuex from "vuex";

import count from "./modules/count";
import movie from "./modules/movie";

// 引入持久化储存的插件
import createPersistedstate from "vuex-persistedstate";

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    count,
    movie,
  },
  // 使用插件
  plugins: [createPersistedstate()],
  
});
